{template 'ushop/member', 'header'}
<div style="width:1200px; margin:auto; _height:600px; min-height:600px;">
<form method="post" action="" id="myform" name="myform">
  <div class="Main">
    <div id="Position" class="margin_b6" style="height:25px; line-height:25px; margin-bottom:1px;"> <a href="{APP_PATH}index.php?m=ushop">首页</a>&nbsp;&gt;&nbsp;<a href="{APP_PATH}index.php?m=member&c=index">我的ushop</a>&nbsp;&gt;&nbsp;<span>积分信息</span></div>
    <div class="right">
      <div class="o-mt">
        <h2 style="background-color:#FFF;">我的积分</h2>
      </div>
      <script language="JavaScript">
				<!--
		  $(document).ready(function() {
			  $("#point").html($("#money").val()*{if !empty($member_setting['rmb_point_rate'])}{$member_setting['rmb_point_rate']}{else}10{/if});
			  $("#money").keyup(function() {
				  $(this).val($(this).val().replace(/[^\d]/g,''));
				  $("#point").html($("#money").val()*{if !empty($member_setting['rmb_point_rate'])}{$member_setting['rmb_point_rate']}{else}10{/if});
				  if({$memberinfo[amount]} < $(this).val()) {
					  $("#alert").html('{L('not_sufficient_funds')}');
				  } else {
					  $("#alert").html('');
				  }
			  });
		  });
		  //-->
	  </script>
      <div class="m m5" id="jf-zh">
        <div class="mc">
            您当前的积分：
            <strong class="ftx-01">{$memberinfo[amount]}</strong>{L('unit_yuan')}，
            <strong class="ftx-01">{$memberinfo[point]}</strong>{L('unit_point')}
            <span style="margin-left:30px;">{L('cost')}：
        	<input type="text" class="input-text" name="money" id="money" size="6">&nbsp;{L('unit_yuan')}
			{L('can_change_point_num')}：<font id="point" style="color:#F00; font-size:12px;font-family:Georgia,Arial; font-weight:700">0</font>{L('unit_point')}
			<font id="alert" style="color:#F00; font-size:12px;font-family:Georgia,Arial; font-weight:700"></font></span>
            <span style="margin-left:50px;"><input type="submit" class="button" name="buy" value="兑换"></span>
        </div>
      </div>
      <div class="m m7" id="help">
        <div class="mt">
          <h3>积分获取及使用常见问题</h3>
        </div>
        <div class="mc">
          <p class="ftx-03">1. 您兑换的购物券为电子券，有效期为一年，自成功兑换之日起计算。<br />
            2. 京东购物券仅限本ID使用，不能折算为现金、也不能再次兑换为积分。<br />
            3. 10元京券需要铁牌以上会员级别兑换,20元京券需要银牌以上会员级别兑换,50元京券需要金牌以上会员级别兑换。<br />
            4. 每日至多换取三张优惠券。</p>
        </div>
      </div>
    </div>
    <!--[if !IE]>正文右部结束<![endif]-->
    {template 'ushop/member', 'left'}
  </div>
</form>
</div>
<div style="clear:both;"></div>
{template 'ushop', 'footer'}